<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../../views/common/taglibs.jsp"%>
  <div id="u30" class="ax_default shape">
                <div id="u30_div" class=""></div>
                <!-- Unnamed () -->
                <div id="u31" class="text" style="visibility: visible;">
                  <p><span>
                  	编辑商品编码
        			</span></p>
                </div>
  </div>
  <div id="u30" class="ax_default shape">
  		
		<a href="javascript:doActionNoCallback('core', '${appServer}/back/item/getItemList.htm', itemListParam);">&lt;返回</a>
		<br/>
  </div>
  <div class="search">
	    <form id="editItemCodeFrm" name="editItemCodeFrm" action="${appServer}/back/item/updateItemCode.htm" method="post" onsubmit="return false;">
		    <table width="99%" border="0" cellspacing="0" cellpadding="0">
				<c:if test="${msg!=null}">
        		<tr>
			    	<td class="tc">
	        			<h2>${msg}</h2>
	        		</td>
				</tr>
  				</c:if>
  				<c:if test="${errorMsg!=null}">
        		<tr>
			    	<td class="tc">
	        			<h2><font color="#FF0000">商品编码保存失败：${errorMsg}</font></h2>
	        		</td>
				</tr>
  				</c:if>
				<tr>
			      	<th>
			      		商品：
			      	</th>
			      	<td>
			      		${item.itemDesc}
			      		<input type="hidden" name="itemDesc" value="${item.itemDesc}"/>
			      	</td>
			   </tr>
			   <tr>
			      	<th>
			      		原商品编码：
			      	</th>
			      	<td>
			      		<c:if test="${itemCodeOrigin!=null}">
			      		${itemCodeOrigin}
			      		<input type="hidden" name="itemCodeOrigin" value="${itemCodeOrigin}"/>
			      		</c:if>
			      	</td>
			   </tr>
			   <tr>
			      	<th>
			      		商品编码图：
			      	</th>
			      	<td>
			      		<c:if test="${item.itemCodePic!=null}">
				        <img src="${item.itemCodePic}" alt="商品编码图" height="auto" width="auto"/>
			      		<input type="hidden" name="itemCodePic" value="${item.itemCodePic}"/>
				        </c:if>
			      	</td>
			   </tr>
			    <tr>
			      	<th>
			      		新商品编码：
			      	</th>
			      	<td>
			      		<input type="text" class="fl" name="itemCode" value="${item.itemCode}"/>
			      		<input type="hidden" name="id" value="${item.id}"/>
			      		<input type="hidden" name="itemDescBack" value="${itemDescBack}"/>
			      		<input type="hidden" name="itemCodeBack" value="${itemCodeBack}"/>
			      		<input type="hidden" name="memberNameBack" value="${memberNameBack}"/>
			      		<input type="hidden" name="itemListPageNum" value="${itemListPageNum}"/>
			      	</td>
			    </tr>
			    <tr>
					<td class="tc"><input class="btAdd" name="" value="保存" type="button" onclick="editItemCodeSubmit();" /></td>
				</tr>
		    </table>
	    </form>
  </div>
	<script type="text/javascript">
	    itemListParam = {'itemDesc' : '${itemDescBack}', 'itemCode' : '${itemCodeBack}', 'memberName' : '${memberNameBack}', 'pageNO' : '${itemListPageNum}'};
    </script>